import { useContext } from 'react';
import {context} from './Provider'

export default function Counter02() {
  const {counter02, setCounter02} = useContext(context)

  console.log('counter02: ', counter02)

  function clickHandle() {
    setCounter02(counter02 + 1)
  }
  return (
    <button onClick={clickHandle}>
      counter02: {counter02}
    </button>
  )
}